<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>表单绑定-复选框checkbox</title>
  <script type="text/javascript" src="vue.js"></script>
</head>
<body>
  <div id="app">
    <input type="checkbox" id="agree" v-model="agree"/>
    <label for="agree">{{ agree ? "同意" : "不同意" }}</label>
  </div>
  <script>
    let vm = new Vue({
      el:"#app",
      data:{
        agree: false
      }
    })
  </script>
</body>
</html>